package api.my_api;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.Month;

public class Test7 {
    public static void main(String[] args) {
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        LocalDateTime of = LocalDateTime.of(1111111, 2, 20, 20, 20, 20, 20);
        System.out.println(of);

        LocalDate localDate = now.toLocalDate();
        LocalTime localTime = now.toLocalTime();
        LocalDateTime of1 = LocalDateTime.of(localDate, localTime);
        Month month = now.getMonth();
        int value = month.getValue();
        System.out.println(value);
    }
}
